package cn.e_eap.esite.web;

public class SystemContext {
	
	private static final ThreadLocal<Integer> pageSize = new ThreadLocal<Integer>();
	
	public static int getPageSize() {
		
		Integer ps = pageSize.get();
		if(ps == null){
			pageSize.set(10);
		}
		
		return pageSize.get();
	}
	
	public static void setPageSize(int i){
		pageSize.set(i);
	}
	
	public static class SessionKey{
		public static final String USER = "user";
		public static final String LAST_URL = "last_url";
	}
	
	public static class Action {
		public static final String ADD_SUCCESS = "addSuccess";
		public static final String DEL_SUCCESS = "delSuccess";
		public static final String UPDATE_SUCCESS = "updateSuccess";
		
		public static final String ADD_INPUT = "addInput";
		
		public static final String UPDATE_INPUT = "updateInput";
		
		
		
	}
        	
}
